package com.guigu.pd.serviceapi.authfeign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @author lizongyi
 * @date 2022/7/22
 * @Note
 */
@FeignClient(value="pd-auth",path = "/auth/ssq")
public interface SsqFeign {


    @GetMapping("/getnamebyid/{id}")
    public String getnamebyId(@PathVariable("id") Integer id);

    @GetMapping("/getprovince/{pid}")
    public List<String> province(@PathVariable("pid") Integer pid);

}
